package com.wfuhui.modules.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wfuhui.common.utils.R;
import com.wfuhui.modules.api.annotation.AuthIgnore;
import com.wfuhui.modules.oms.entity.SettingsEntity;
import com.wfuhui.modules.oms.service.SettingsService;
import io.swagger.annotations.Api;

@RestController
@RequestMapping("/api/settings")
@Api("设置接口")
public class ApiSettingsController {
	
	@Autowired
	private SettingsService settingsService;
	
	@AuthIgnore
    @GetMapping("getInfo")
	public R getInfo() {
		SettingsEntity settings = settingsService.queryOne();
		return R.ok().put("settings", settings);
	}
}
